<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>登录成功</title>
    <style>
        * {
            box-sizing: border-box;
        }
        body,
        h1 {
            margin: 0;
            padding: 0;
            border: 0;
        }
        .login-success-wrap {
            width: 420px;
            margin-left: -210px;
            height: 374px;
            margin-top: -187px;
            position: absolute;
            top: 50%;
            left: 50%;
        }
        .login-success-con {
            padding: 24px 20px 14px;
            margin-top: 50px;
        }
        img {
            vertical-align: middle;
            margin: 0 auto;
            margin-left: 108px;
        }
        h1 {
            line-height: 1.1;
            font-weight: normal;
            margin-bottom: 32px;
            padding-bottom: 26px;
            font-size: 28px;
            text-align: center;
            color: #2b2c2d;
            background: url() no-repeat bottom center;
        }
    </style>
</head>
<body style="font-family:Microsoft Yahei;">
    <div class="login-success-wrap">
        <div class="login-success-con clearfix" style="border: none;">
                <img width="183" height="112" src="">
            <h1>登录成功</h1>
            <input type="hidden" id="is_ajax_id" value="1">
            <textarea id="refer_url_id" style="display:none"></textarea>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function () {
            var is_ajax = window.location.href.match(/is\_ajax\=(\d+)/)
            if (is_ajax && is_ajax[1]) {
                // parent.bus.$emit('close-login-modal')
                window.opener.bus.$emit('close-login-modal')
                setTimeout(() => {
                    window.close()
                }, 200);
            }
        })
    </script>
</body>
</html>
